package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class ArrayAssignExpression extends Statement {
	public Identifier identifier;
	public Expression firsExpression, secondExpression;

	public ArrayAssignExpression(Identifier identifier, Expression firsExpression, Expression secondExpression) {
		super();
		this.identifier = identifier;
		this.firsExpression = firsExpression;
		this.secondExpression = secondExpression;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);		
	}

	@Override
	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}

}
